package top.lemna.account.domain;

import java.util.LinkedList;
import java.util.List;

public class SimpleEventQueue implements EventQueue{

    List<DomainEvent> queue = new LinkedList<DomainEvent>();

    @Override
    public void enqueue(DomainEvent event) {
        queue.add(event);
    }

    @Override
    public List<DomainEvent> queue() {
        return queue;
    }

}
